package co.baiku.boot.office.excel.model;

import co.baiku.boot.office.excel.annotation.ExcelColumn;

import java.util.HashMap;
import java.util.Map;

public class ExcelColumnModel {
	// <序号,<属性名,列注释>>
	Map<Integer, Map<String, ExcelColumn>> modelMap = new HashMap<>();
	
	public Map<String, ExcelColumn> getIndex(Integer index){
		return modelMap.get(index);
	}
	
	public Map<Integer, Map<String, ExcelColumn>> getModelMap() {
		return modelMap;
	}

	public void setModelMap(Map<Integer, Map<String, ExcelColumn>> modelMap) {
		this.modelMap = modelMap;
	}

	@Override
	public String toString() {
		return "ColumnModel [modelMap=" + modelMap + "]";
	}

}
